<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动float</title>
    <style>
        .c1{
            width:400px;
            height: 120px;
            background-color: red;

            /* 左浮动 */
            float: left;
        }

        .c2{
            width:500px;
            height: 100px;
            background-color: orange;

            float: left;
        }

        .c3{
            width:300px;
            height: 150px;
            background-color: #000;
            /* 经验+技巧 清除左右两边的浮动 */
            clear: both;
        }
    </style>
</head>
<body>
    <!-- 浮动目的 - 是为了让块元素在一行当中显示 -->
    <div class="c1">

    </div>

    <div class="c2">

    </div>

    <div class="c3">

    </div>
</body>
</html>